function updateData(data) {

    for (let name of Object.keys(data)) {
        localStorage.setItem(name, JSON.stringify(data[name]))
    }
    localStorage.setItem('identify', data.identify);
}


export {
    updateData
}